import fetch from '../utils/fetch'

/**
 * 微信支付
 * @params orderId 订单id
 */
export function wxPay(orderId) {
    return fetch({
        url: '/ygsj/pay/jsapi/' + orderId,
        method: 'post',
    })
}

/**
 * 支付回调通知处理
 * @params xmlData
 */
export function wxPayCb(xmlData) {
    return fetch({
        url: '/ygsj/pay/notify/order',
        method: 'post',
        data: xmlData
    })
}